define( function () {
    var utils = angular.module('ecnuUtils', ['ngCookies', 'ngStorage']);
    utils.config(['$httpProvider', config]);
    function config($httpProvider) {
        $httpProvider.defaults.withCredentials = true;
        $httpProvider.defaults.headers.common = {'Access-Control-Allow-Origin': '*'}
    }
});